package com.jzo2o.foundations.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzo2o.api.foundations.dto.response.ServeAggregationResDTO;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.response.ServeAggregationSimpleResDTO;
import com.jzo2o.foundations.model.dto.response.ServeAggregationTypeSimpleResDTO;
import com.jzo2o.foundations.model.dto.response.ServeCategoryResDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author itcast
 * @since 2023-07-03
 */
public interface ServeMapper extends BaseMapper<Serve> {

    /**
     * 根据ID查询服务详情
     *
     * @param id 服务id
     * @return 服务详情
     */
    ServeAggregationResDTO findServeDetailById(Long id);
    /**
     * 区域服务分页查询
     * @param regionId
     * @return
     */
    List<ServeResDTO> queryList(Long regionId);

    /**
     * 查询首页服务列表
     * @param regionId
     * @return
     */
    List<ServeCategoryResDTO> findListByRegionId(Long regionId);

    /**
     * 查询热门服务列表
     * @param regionId
     * @return
     */
    List<ServeAggregationSimpleResDTO> findServeListByRegionId(Long regionId);

    /**
     * 查询服务类型列表
     * @param regionId
     * @return
     */
    List<ServeAggregationTypeSimpleResDTO> findServeTypeListByRegionId(Long regionId);
}
